package com.jiawa.train.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiawa.train.business.domain.DailyTrainSeat;
import com.jiawa.train.business.req.DailyTrainSeatQueryReq;
import com.jiawa.train.business.resp.DailyTrainSeatQueryResp;
import com.jiawa.train.common.resp.PageResp;

import java.util.Date;
import java.util.List;

public interface DailyTrainSeatService extends IService<DailyTrainSeat> {
    // 可添加自定义方法声明
    void save(com.jiawa.train.business.req.DailyTrainSeatSaveReq req);

    PageResp<DailyTrainSeatQueryResp> queryList(DailyTrainSeatQueryReq req);

    void delete(Long id);

    void genDaily(Date date, String dailyTrainCode);

    List<DailyTrainSeat> selectByDailyTrainCode(String dailyTrainCode);

    int countSeat(Date date, String trainCode, String seatType);
}
